package com.tpyule.tpclass.service;

import com.tpyule.tpclass.entity.bo.MenuPathBo;
import com.tpyule.tpclass.entity.bo.PathBo;
import com.tpyule.tpclass.entity.bo.PathDetailBo;
import com.tpyule.tpclass.entity.dto.PathQueryDto;
import com.tpyule.tpclass.entity.dto.PathSelDto;
import com.tpyule.tpclass.entity.pojo.Path;
import com.tpyule.tpclass.entity.pojo.PathGroup;

import java.util.List;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/4/24 21:00
 */
public interface PathService {
    public int getSizePath(PathQueryDto dto);
    public List<PathDetailBo> getListPath(PathQueryDto dto);
    public int addPath(Path path);
    public int updatePath(Path path);
    public int deletePath(Path path);

    /**
     * 获取路径分组
     * @return
     */
    public List<PathGroup> getListGroup();


    /**
     * 获取所有路径
     * @return
     */
    public List<Path> getAllPath();


    /**
     * 加载树形菜单
     * @param dto
     * @return
     */
    public List<PathBo> getMenu(PathSelDto dto);


    /**
     * 加载页面展示菜单
     * @param userId
     * @param type
     * @return
     */
    public List<MenuPathBo> getMenuPath(String userId, int type);
}
